package com.jiaai.cloud.user.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.jiaai.cloud.live.entity.TLiveBroadcast;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-01
 */
@TableName("t_user")
public class TUser extends Model<TUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户Id
     */
	@TableId(type= IdType.INPUT)
	private String userId;

	private String userNo;
    /**
     * 性别(0女 1男 2未知)
     */
	private Integer sex;
    /**
     * 昵称
     */
	private String nickName;
    /**
     * 城市
     */
	private String city;
    /**
     * 用户头像
     */
	private String avatar;
    /**
     * 个性签名
     */
	private String signature;
    /**
     * 创建时间
     */
    @JSONField(format = "YYYY-MM-dd")
	private Date createTime;

	@TableField(exist = false)
	private List<TUserPayRecord> tUserPayRecordList;

	@TableField(exist = false)
	private List<TUserWallet> tUserWalletList;

	public List<TUserWallet> gettUserWalletList() {
		return tUserWalletList;
	}

	public void settUserWalletList(List<TUserWallet> tUserWalletList) {
		this.tUserWalletList = tUserWalletList;
	}

	public List<TUserPayRecord> gettUserPayRecordList() {
		return tUserPayRecordList;
	}

	public void settUserPayRecordList(List<TUserPayRecord> tUserPayRecordList) {
		this.tUserPayRecordList = tUserPayRecordList;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUserNo() {
		return userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}


}
